var gsection;

$(document).ready(
	function()
	{
		gsection = $('#group_section');

		activateGroup(gsection.find('input:radio:checked'));
		gsection.find('input:radio').click(function () {activateGroup(this);});
	}
);

function activateGroup(obj)
{
	var id = $(obj).val();

	gsection.find("input:checkbox:hidden").show();
	gsection.find("input:checkbox[value='" +id+ "']").hide();

	gsection.find('.group_title').css('font-weight', 'normal');
	gsection.find('#group_title_' +id).css('font-weight', 'bold');
}